﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Course.Models;
using Course.DAO;

namespace Course.Controllers
{
    public class DeclareController : Controller
    {
        //
        // GET: /Declare/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult DeclareInfo(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Achievement(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Report(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Appraise(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Plan(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Teach(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Resources(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Features(string itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }

        public ActionResult Time(string  itName)
        {
            ArticleDAO articleDao = new ArticleDAO();
            ViewData["one"] = articleDao.GetOne(itName);
            return View();
        }
    }
}
